#include "MoveAbilityVisitor.h"


MoveAbilityVisitor::MoveAbilityVisitor(): found(false), movableInterface(0)
{
}

MoveAbilityVisitor::~MoveAbilityVisitor()
{
}

void MoveAbilityVisitor::Visit(MoveAbility& ability)
{
	found = true;
	movableInterface = ability.MovableInterface();
}

bool MoveAbilityVisitor::FoundAbility() const
{
	return found;
}

Movable* MoveAbilityVisitor::MovableInterface() const
{
	return movableInterface;
}

void MoveAbilityVisitor::Clear()
{
	found = false;
	movableInterface = 0;
}

